home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / tocindexprefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-10-10  |  2.9 KB  |  87 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. /***************************************************************************
  8.     begin                : 2005
  9.     copyright            : (C) 2005 by Craig Bradney
  10.     email                : cbradney@zip.com.au
  11. ***************************************************************************/
  12.  
  13. /***************************************************************************
  14. *                                                                         *
  15. *   ScMW program is free software; you can redistribute it and/or modify  *
  16. *   it under the terms of the GNU General Public License as published by  *
  17. *   the Free Software Foundation; either version 2 of the License, or     *
  18. *   (at your option) any later version.                                   *
  19. *                                                                         *
  20. ***************************************************************************/
  21. #ifndef TOCINDEXPREFS_H
  22. #define TOCINDEXPREFS_H
  23.  
  24. #include <QStringList>
  25.  
  26. class QEvent;
  27.  
  28. #include "ui_tocindexprefs.h"
  29. #include "page.h"
  30. #include "pagestructs.h"
  31. #include "scribusdoc.h"
  32.  
  33. class TOCIndexPrefs : public QWidget, Ui::TOCIndexPrefs
  34. {
  35.     Q_OBJECT
  36.  
  37. public:
  38.     TOCIndexPrefs( QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0 );
  39.     ~TOCIndexPrefs();
  40.     
  41.     virtual void changeEvent(QEvent *e);
  42.  
  43.     virtual void enableGUIWidgets();
  44.     virtual ToCSetupVector * getNewToCs();
  45.  
  46. public slots:
  47.     virtual void setup( ToCSetupVector * tocsetups, ScribusDoc * doc );
  48.     virtual void generatePageItemList();
  49.     virtual void setupItemAttrs( QStringList newNames );
  50.     virtual void selectToC( int numberSelected );
  51.     virtual void addToC();
  52.     virtual void updateToCListBox();
  53.     virtual void updateParagraphStyleComboBox();
  54.     virtual void deleteToC();
  55.     virtual void itemAttributeSelected( const QString & itemAttributeName );
  56.     virtual void itemFrameSelected( const QString & frameName );
  57.     virtual void itemPageNumberPlacedSelected( const QString & pageLocation );
  58.     virtual void itemParagraphStyleSelected( const QString & itemStyle );
  59.     virtual void setToCName( const QString & newName );
  60.     virtual void nonPrintingFramesSelected( bool showNonPrinting );
  61.  
  62. protected:
  63.     int numSelected;
  64.     QString strPNNotShown;
  65.     QString strPNEnd;
  66.     QString strPNBeginning;
  67.     QString trStrPNNotShown;
  68.     QString trStrPNEnd;
  69.     QString trStrPNBeginning;
  70.     ToCSetupVector localToCSetupVector;
  71.     QString trStrNone;
  72.     ScribusDoc *currDoc;
  73.     QString selectedTOCAttrName;
  74.     QStringList paragraphStyleList;
  75.     QString strNone;
  76.  
  77. protected slots:
  78.     virtual void languageChange();
  79.  
  80. private:
  81.     void init();
  82.     void destroy();
  83.  
  84. };
  85.  
  86. #endif // TOCINDEXPREFS_H
  87.